/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Root variables */
:root {
  --primary: rgb(215, 66, 29);
}

/* General reset and box-sizing */
html {
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  font-size: 12px;
}

/* Background styles */
.background {
  position: fixed;
  width: 200vw;
  height: 200vh;
  top: 0;
  left: -50vw;
  z-index: -1;
}

.background img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
  filter: blur(15px);
  --webkit-filter: blur(15px);
  transform: scale(1.1);
}

/* Container styles */
.container {
  position: relative;
  background-color: #e7e7e7;
  height: 500px;
  width: 400px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
}

.container:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

/* Player image styles */
.player-img {
  width: 300px;
  height: 300px;
  position: relative;
  top: -50px;
  left: 50px;
  border: 5px solid white;
  border-radius: 100%;
  box-shadow: 0 5px 30px 5px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
}

.player-img img {
  object-fit: cover;
  border-radius: 20px;
  border-radius: 1000%;
  height: 0;
  width: 0;
  opacity: 0;
  animation: spin 40s linear infinite paused;
}

/* Player image pseudo-element */
.player-img::before {
  content: '';
  width: 50px;
  height: 50px;
  background-color: white;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 50%;
  z-index: 2;
  border-radius: 100%;
  border: 3.5px solid rgb(255, 255, 255);
  box-shadow: inset 1px 1px 20px rgba(125, 125, 125, 0.682);
}

/* Animation for player image */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Hover effect for player image */
.player-img:hover {
  box-shadow: 0 5px 30px 5px rgba(0, 0, 0, 0.8);
}

/* Active image transition */
.player-img img.active {
  width: 100%;
  height: 100%;
  transition: all 0.5s;
  opacity: 1;
}

/* Headings styles */
h2 {
  font-size: 25px;
  text-align: center;
  font-weight: 500;
  margin: 0;
}

h3 {
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  margin: 0;
}

/* Player progress bar */
.player-progress {
  background-color: #fff;
  border-radius: 5px;
  cursor: pointer;
  margin: 45px 20px 35px;
  height: 6px;
  width: 90%;
  position: relative;
}

/* Progress bar styling */
.progress {
  background-color: #212121;
  border-radius: 5px;
  height: 100%;
  width: 0%;
  transition: width 0.5s linear;
  position: relative;
}

/* Progress bar before pseudo-element */
.progress::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  position: absolute;
  top: -2px;
  right: -2px;
  transition: all 0.5s linear;
}

/* Music duration display */
.music-duration {
  position: relative;
  top: -35px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  user-select: none;
  padding-right: 1px;
  color: var(--primary);
  filter: brightness(70%);

}

/* Player controls */
.player-controls {
  position: relative;
  top: -10px;
  margin: auto;
  width: 200px;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Icons styles */
.fa-solid {
  font-size: 30px;
  color: #666;
  cursor: pointer;
  user-select: none;
}

.fa-solid:hover {
    color: var(--primary);
}

.fa-backward {
  margin-right: 50px;
}

.fa-volume-low {
  margin-right: 7.5px;
}

.fa-volume-xmark {
  margin-right: 2.5px;
}

/* Play button */
.play-button {
  font-size: 44px;
  position: absolute;
}

.fa-pause{
    color: var(--primary);
}

/* Loudness container */
.loudness-container {
  display: inline-block;
  position: relative;
  top: 1px;
}

/* Volume control */
.volume {
  font-size: 20px;
  outline: none;
}

/* Loop button */
.loop {
  font-size: 20px;
  font-weight: 900;
  margin-left: 2px;
}

.loop.active {
  color: var(--primary);
}

/* Loop container */
.loop-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 1px;
}

/* Loudness slider container */
.loudness-slider-container {
  position: absolute;
  top: -30px;
  left: 12px;
  transform: rotate(-90deg);
  transform-origin: 0px;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 50px;
  padding: 0 20px;
  width: 90px;
  display: none;
}

.loudness-slider-container.active {
  display: block;
}

/* Toggle loudness button */
#toggleLoudness {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  outline: none;
}

/* loudness bar */
#loud {
    width: 90px;
    margin: 10px 0;
    cursor: pointer;
}



  
